home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.07 Jul 90 / Commando Programming ƒ / Rezscripts / RezC.ALRT.Cmdo.R < prev    next >
Encoding:
Text File  |  1988-07-13  |  5.2 KB  |  206 lines  |  [TEXT/MPS ]

  1. /* File RezC.ALRT.Cmdo.R */
  2. /* Rez input for the Rezc.ALRT Commando interface */
  3. /* W. Powell 1988 */
  4.  
  5. /* Rez definitions for Rez-building Commando interfaces */
  6. #include "Cmdo.R"
  7.  
  8. Resource 'cmdo' (200) {
  9.     { 255,
  10.     "Rezc.ALRT produces Rez input for an Alert resource",
  11.     {
  12. /* This include file has a standard arrangement of items
  13.  *   common to all resources: ID#, attributes, name, 
  14.  *      and redirection of output from the Rezc.≈ script        */
  15. #include "CmdoReztStart.R"
  16.  
  17. /* Set up parameters for a Rectangle entry area                */    
  18.     #define RTop 85
  19.     #define RLeft 30
  20.     #define RTit "Window Rectangle"
  21.     #define RDep {1}
  22. /* This include file has a standard arrangement of edit boxes
  23.  *   for input of rectangles                                */
  24. #include "CmdoRect.R"
  25.  
  26. /* other items particular to this case */    
  27.     /* Item 11 */
  28.     OR {{1}}, RegularEntry {
  29.         "DITL ID#:",
  30.         {90,265,106,340},
  31.         {90,350,106,435},
  32.         "",keepCase,"-DITL",
  33.         "Resource ID of the alert's item list" },
  34.     /* Item 12 */
  35.     OR {{1}}, NestedDialog {
  36.         4, /* Nested dialog number */
  37.         {115,270,135,430},
  38.         "Alert Stages",
  39.         "Define actions at alert stages 1 through 4" },
  40.     AND {{1,6,7,8,9,11}}, DoItButton {},
  41.     },
  42. /* Dialog 2 */
  43. /* Include the standard resource attributes dialog */
  44. #include "CmdoReztAttr.R"
  45.  
  46. /* Dialog 3 */
  47. /* Include a redirection dialog */
  48. #include "CmdoReztRdir.R"
  49.  
  50. /* Dialog 4 */
  51. /* The alert stages */
  52.     255, 
  53.     "Define action to take for each stage of this Alert",
  54.     {
  55.     NotDependent {}, CheckOption {
  56.         Set,
  57.         {20,25,36,300},
  58.         "All alert stages the same",
  59.         "-as14",
  60.         "Click here to produce the same response at all alert stages."
  61.         },
  62.     NotDependent {}, RadioButtons {{
  63.         {72,50,88,113},
  64.             "Visible","-V1",NotSet,"Show alert window.",
  65.         {72,120,88,196},
  66.             "Invisible","-I1",NotSet,"Don't show alert window.",
  67.         }},
  68.     NotDependent {}, RadioButtons {{
  69.         {72,210,88,245},
  70.             "OK","-OK1",NotSet,"Make OK button the default.",
  71.         {72,255,88,320},
  72.             "Cancel","-Can1",NotSet,
  73.             "Make Cancel button the default." 
  74.         }},
  75.     NotDependent {}, RadioButtons {{
  76.         {72,330,88,364},"0","-S01",NotSet,
  77.             "Make Alert silent at this stage.",
  78.         {72,365,88,399},"1","-S11",NotSet,
  79.             "Alert sound 1 (1 beep).",
  80.         {72,400,88,434},"2","-S21",NotSet,
  81.             "Alert sound 2 (2 beeps).",
  82.         {72,435,88,469},"3","-S31",NotSet,
  83.             "Alert sound 3 (3 beeps)."
  84.         }},
  85.     /* Stage 2 */
  86.     OR { {-1} }, RadioButtons {{
  87.         {88,50,104,113},
  88.             "Visible","-V2",NotSet,"Show alert window.",
  89.         {88,120,104,196},
  90.             "Invisible","-I2",NotSet,"Don't show alert window.",
  91.         }},
  92.     OR { {-1} }, RadioButtons {{
  93.         {88,210,104,245},
  94.             "OK","-OK2",NotSet,"Make OK button the default.",
  95.         {88,255,104,320},
  96.             "Cancel","-Can2",NotSet,
  97.             "Make Cancel button the default." 
  98.         }},
  99.     OR { {-1} }, RadioButtons {{
  100.         {88,330,104,364},"0","-S02",NotSet,
  101.             "Make Alert silent at this stage.",
  102.         {88,365,104,399},"1","-S12",NotSet,
  103.             "Alert sound 1 (1 beep).",
  104.         {88,400,104,434},"2","-S22",NotSet,
  105.             "Alert sound 2 (2 beeps).",
  106.         {88,435,104,469},"3","-S32",NotSet,
  107.             "Alert sound 3 (3 beeps)."
  108.         }},
  109.     /* Stage 3 */
  110.     OR { {-1} }, RadioButtons {{
  111.         {104,50,120,113},
  112.             "Visible","-V3",NotSet,"Show alert window.",
  113.         {104,120,120,196},
  114.             "Invisible","-I3",NotSet,"Don't show alert window.",
  115.         }},
  116.     OR { {-1} }, RadioButtons {{
  117.         {104,210,120,245},
  118.             "OK","-OK3",NotSet,"Make OK button the default.",
  119.         {104,255,120,320},
  120.             "Cancel","-Can3",NotSet,
  121.             "Make Cancel button the default." 
  122.         }},
  123.     OR { {-1} }, RadioButtons {{
  124.         {104,330,120,364},"0","-S03",NotSet,
  125.             "Make Alert silent at this stage.",
  126.         {104,365,120,399},"1","-S13",NotSet,
  127.             "Alert sound 1 (1 beep).",
  128.         {104,400,120,434},"2","-S23",NotSet,
  129.             "Alert sound 2 (2 beeps).",
  130.         {104,435,120,469},"3","-S33",NotSet,
  131.             "Alert sound 3 (3 beeps)."
  132.         }},
  133.     /* Stage 4 */
  134.     OR { {-1} }, RadioButtons {{
  135.         {120,50,136,113},
  136.             "Visible","-V4",NotSet,"Show alert window.",
  137.         {120,120,136,196},
  138.             "Invisible","-I4",NotSet,"Don't show alert window.",
  139.         }},
  140.     OR { {-1} }, RadioButtons {{
  141.         {120,210,136,245},
  142.             "OK","-OK4",NotSet,"Make OK button the default.",
  143.         {120,255,136,320},
  144.             "Cancel","-Can4",NotSet,
  145.             "Make Cancel button the default." 
  146.         }},
  147.     OR { {-1} }, RadioButtons {{
  148.         {120,330,136,364},"0","-S04",NotSet,
  149.             "Make Alert silent at this stage.",
  150.         {120,365,136,399},"1","-S14",NotSet,
  151.             "Alert sound 1 (1 beep).",
  152.         {120,400,136,434},"2","-S24",NotSet,
  153.             "Alert sound 2 (2 beeps).",
  154.         {120,435,136,469},"3","-S34",NotSet,
  155.             "Alert sound 3 (3 beeps)."
  156.         }},
  157.     NotDependent {}, Box {
  158.         Gray, {45,48,145,49} },
  159.     NotDependent {}, Box {
  160.         Gray, {45,204,145,205} },
  161.     NotDependent {}, Box {
  162.         Gray, {45,324,145,325} },
  163.     NotDependent {}, TextTitle {
  164.         plain, 
  165.         {50,8,66,44},
  166.         systemFont, systemSize, 
  167.         "Stage" },
  168.     NotDependent {}, TextTitle {
  169.         Plain, 
  170.         {50,105,66,175},
  171.         systemFont, systemSize, 
  172.         "Window" },
  173.     NotDependent {}, TextTitle {
  174.         Plain, 
  175.         {50,240,66,290},
  176.         systemFont, systemSize, 
  177.         "Default Button" },
  178.     NotDependent {}, TextTitle {
  179.         Plain, 
  180.         {50,380,66,420},
  181.         systemFont, systemSize, 
  182.         "Sound" },
  183.     NotDependent {}, TextTitle {
  184.         Outline, 
  185.         {72,20,88,35},
  186.         systemFont, systemSize, 
  187.         "1" },
  188.     OR { {-1} }, TextTitle {
  189.         Outline, 
  190.         {88,20,104,35},
  191.         systemFont, systemSize, 
  192.         "2" },
  193.     OR { {-1} }, TextTitle {
  194.         Outline, 
  195.         {104,20,120,35},
  196.         systemFont, systemSize, 
  197.         "3" },
  198.     OR { {-1} }, TextTitle {
  199.         Outline, 
  200.         {120,20,136,35},
  201.         systemFont, systemSize, 
  202.         "4" },
  203.     },
  204. }
  205. }; 
  206.